import React from 'react';

import { Tester } from '@rnoh/testerino';
import { NavigationContainer, Page } from '../../components/Navigation';
import { ShareToSession } from './src/ShareToSession';
import { ShareToTimeline } from './src/ShareToTimeline';

const App = () => {
  return (
    <NavigationContainer>
      <Page name="分享到会话">
        <Tester style={{ flex: 1 }}>
          <ShareToSession/>
        </Tester>
      </Page>
      <Page name="分享到朋友圈">
        <Tester style={{ flex: 1 }}>
          <ShareToTimeline/>
        </Tester>
      </Page>
    </NavigationContainer>
  );
};

export default {
  displayName: "wechat-lib",
  framework: "React",
  category: "Tools",
  title: "wechat-lib-demo",
  documentationURL: "hhttps://gitee.com/react-native-oh-library/usage-docs/blob/master/zh-cn/react-native-wechat-lib.md",
  description: "微信功能集成，包括微信登录，社交分享，微信支付，小程序跳转",
  examples: [
    {
      title: "wechat-lib",
      render: function (): any {
        return <App />;
      },
    },
  ],
};
